package com.buybuyyi.stylistcrm.security.rest;

import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;

import java.util.Collection;

/**
 * Created by yanwc on 2016/9/20.
 */
public class DefaultAccessTokenAuthenticationToken extends UsernamePasswordAuthenticationToken {
    private String accessToken;

    public DefaultAccessTokenAuthenticationToken(Object principal, Object credentials) {
        super(principal, credentials);
    }

    public DefaultAccessTokenAuthenticationToken(Object principal, Object credentials, Collection<? extends GrantedAuthority> authorities) {
        super(principal, credentials, authorities);
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }
}
